package au.com.fx.controllers;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import au.com.fx.contact.GAESigningUpUserRepository;
import au.com.fx.contact.SigningUpUser;
import au.com.fx.contact.SigningUpUserRepository;

@Configuration
public class FxConfig {
	
	@Bean
	@Scope("singleton")
	AccountController accountController(){
		return new AccountController();
	}
	
	@Bean
	SigningUpUser signingUpUser(){
		return new SigningUpUser();
	}
	
	@Bean
	SigningUpUserRepository signingUpUserRepository(){
		return new GAESigningUpUserRepository();
	}
}
